import { Next, Request, Response } from "restify";
import { getCustomRepository } from "typeorm";

import {
    ThesisRepository
} from "@src/apps/thesis/repositories/item.repository";

export class ThesisController {
    getAllThesis(req: Request, res: Response, next: Next): void {
      getCustomRepository(ThesisRepository)
        .getAllThesis()
        .then(r => res.send(r))
        .catch(next);
    }
  }